package com.xs.kanmeitu.activity;

import android.os.Bundle;
import android.widget.ImageView;

import androidx.appcompat.app.AppCompatActivity;

import com.xs.kanmeitu.R;
import com.xs.kanmeitu.util.Constant;
import com.xs.kanmeitu.util.ImageUtil;

public class ImageDetailActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_image_detail);
        //找到控件id
        ImageView imageView = findViewById(R.id.image);
        //获取传递的数据
        String uri = getIntent().getStringExtra(Constant.ID);
        //显示图片
        ImageUtil.show(imageView,uri);
    }
}
